package com.my.mapper;

import com.my.bean.User;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.security.acl.LastOwnerException;
import java.util.List;
import java.util.Map;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author 张子艺
 * @since 2018-08-25
 */
public interface UserMapper extends BaseMapper<User> {
    List<User> selectMyPage(@Param("map") Map map,@Param("param") User user);
    int countMyPage2( @Param("map") Map map,@Param("param") User user);
    List<User> findUserByUsername(@Param("param") User user);
    int countMyPage( @Param("map") Map map,@Param("param") User user,@Param("areaid")Long areaid,@Param("admin")boolean admin);
    List<User>  findUserAndRole( @Param("map") Map map,@Param("param") User user,@Param("areaid")Long areaid,@Param("admin")boolean admin);

    //更新
    int updateAreaId( @Param("userid") Long userid);


}